package com.ltmonitor.entity;

import java.util.Date;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
/**
 * web平台用户操作日志
 * @author admin
 *
 */
@Entity
@org.hibernate.annotations.Proxy(lazy = false)
@Table(name = "operationLog")
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) 
public class OperationLog extends TenantEntity {
	private long entityId;
	private long userId;
	private String userName;
	/**
	 * 操作内容描述
	 */
	private String detail;
	private String url;
	/**
	 * 用户IP地址
	 */
	private String ip;

	private String plateNo;

	private int channel;

	private String operationType;
	
	public OperationLog()
	{
		 createDate = new Date();
	}
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "logId", unique = true, nullable = false)
	public long getEntityId() {
		return this.entityId;
	}

	public void setEntityId(long id) {
		this.entityId = id;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getPlateNo() {
		return plateNo;
	}

	public void setPlateNo(String plateNo) {
		this.plateNo = plateNo;
	}

	public int getChannel() {
		return channel;
	}

	public void setChannel(int channel) {
		this.channel = channel;
	}

	public String getOperationType() {
		return operationType;
	}

	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}
}
